cmake_minimum_required(VERSION 3.10)
project(MiniBank)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 包含头文件目录
include_directories(${PROJECT_SOURCE_DIR}/include)

# 自动收集 source/ 和 include/ 下的所有源文件
file(GLOB_RECURSE SOURCES "source/*.cpp")
file(GLOB_RECURSE HEADERS "include/*.hh")

# 创建可执行文件
add_executable(minibank ${SOURCES} ${HEADERS})